package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.settlement.system.common.base.BaseEntity;
import com.settlement.system.common.enums.PayEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* <p>
* 用户订单表
* </p>
*
* @author huangrensen
* @since 2023-12-30
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysPayOrder extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * ID
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
    * 手机号码
    */
    private String mobile;


    /**
    * 订单号
    */
    private String orderNo;


    /**
    * 支付内容
    */
    private String body;


    /**
    * 支付金额
    */
    private Long money;


    /**
    * 0：未支付、1：已支付
    */
    private Integer payStatus = PayEnum.N.getValue();
    private String payStatusName;


    /**
    * 支付单号
    */
    private String payNo;


    /**
    * 支付时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;

}
